
import javax.swing.ImageIcon;

public class Ganso extends Personagem {

	private static final long serialVersionUID = 1L;

	private static int quant;

	//construtor
	public Ganso(){
		setLayout(null);
		setIcon(new ImageIcon( getClass().getResource("/img/g.jpg") ) );
		quant ++;
	}
	
	//destrutor
	@Override
	protected void finalize() throws Throwable {
		quant  --;
		super.finalize();
	}
	
	
	//setters e getters
	public static int getQuant() {
		return quant;
	}

	public static void setQuant(int quant) {
		Ganso.quant = quant;
	}
	
}
